home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19981211-19990422
/
000366_news@watsun.cc.columbia.edu _Mon Mar 15 13:45:07 1999.msg
< prev
next >
Wrap
Internet Message Format
|
1999-04-21
|
3KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA02476
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 15 Mar 1999 13:45:06 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA00243
for kermit.misc@watsun.cc.columbia.edu; Mon, 15 Mar 1999 13:31:54 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: Tim Rhodes <rhodes@rhodes.cc.vt.edu>
Subject: Re: Carrier test
Date: 15 Mar 1999 18:31:42 GMT
Organization: Virginia Tech, Blacksburg, Virginia, USA
Message-ID: <7cjjme$gd6$1@solaris.cc.vt.edu>
To: kermit.misc@watsun.cc.columbia.edu
Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
: In article <7cjeiv$cbi$1@solaris.cc.vt.edu>,
: Tim Rhodes <rhodes@rhodes.cc.vt.edu> wrote:
: : I'm converting a Procomm script to a C-Kermit script. The Procomm script
: : contains tests to determine carrier is up. Does kermit have a variable
: : that can be tested for this? I've tried SET MODEM CARRIER-WATCH ON, but
: : on an outstanding receive, carrier dropping does not seem to interupt or
: : affect the script.
: :
: Syntax: WAIT { number-of-seconds, hh:mm:ss } [modem-signal(s)]
: Examples:
: wait 5 cd cts
: wait 23:59:59 cd
: Waits up to the given number of seconds or the given time of day for all
: the specified modem signals to appear on the serial communication device.
: Sets FAILURE if the signals do not appear in the given time or interrupted
: from the keyboard during the waiting period. Also see HELP PAUSE.
: Signals:
: cd = Carrier Detect;
: dsr = Dataset Ready;
: cts = Clear To Send;
: ri = Ring Indicate.
: However, if Carrier-Watch is ON and you are using INPUT commands the INPUT
: command will fail if Carrier-Detect has dropped assuming there is no
: data waiting to be read. Under what circumstances do you find that
: carrier-detect is not being noticed?
: What version of C-kermit are you using and on which operating system
: and version?
Using C-Kermit 6.0.192, 6 Sep 96, for Solaris 2.x on Solaris 2.6.
The app is fairly brain dead procedure when the server issues a login
prompt and the client sends a login. Unsuccessful login is indicated
by the server hanging up (the Procomm script waits 5 seconds and then
tests to see if connection still has carrier detect). If still connected,
the script attempts to receive a file (using kermit protocol).
In my testing, I have SET MODEM CARRIER-WATCH ON. After login, the
script issues a receive. The server may or may not have a file to be
sent. If no file is available, the server hangs up. The outstanding
receive does not notice carrier dropping. The script works by the
receive failing with message "?Sent too many NAKs." and success/failure
set properly.
--
.. Tim Rhodes ........................ http://rhodes.cc.vt.edu/~rhodes ..
.. Lead Systems Engineer, Virginia Tech ............ Tim.Rhodes@vt.edu ..